USE [HomestayWebDB]
GO
/****** Object:  StoredProcedure [dbo].[Store_WistList_CheckPostIsAddedToWishlist]    Script Date: 11/26/2012 16:44:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[Store_WistList_CheckPostIsAddedToWishlist]
	@Username varchar(20),
	@PostID int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	SELECT *
	FROM Wishlists 
	WHERE PostID=@PostID AND Username = @Username
		
END
